package com.jizhi.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author 王书豪
 * @since 2020-11-17
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="Drugdictionary对象", description="")
public class Drugdictionary implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "序号")
    @TableId(value = "drugId", type = IdType.AUTO)
    private Integer drugId;

    @ApiModelProperty(value = "药品名称")
    @TableField("drugName")
    private String drugName;

    @ApiModelProperty(value = "计量单位")
    @TableField("unitId")
    private Integer unitId;

    @ApiModelProperty(value = "售价")
    @TableField("sellingPrice")
    private Double sellingPrice;

    @ApiModelProperty(value = "产地")
    @TableField("areaId")
    private Integer areaId;

    @ApiModelProperty(value = "类型")
    @TableField("typeId")
    private Integer typeId;

    @ApiModelProperty(value = "保质期")
    @TableField("exprationDate")
    private Date exprationDate;

    @ApiModelProperty(value = "插入时间")
    @TableField(value = "createTime", fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty(value = "修改时间")
    @TableField(value = "updateTime", fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    @ApiModelProperty(value = "乐观锁")
    @Version
    private Integer version;

    @ApiModelProperty(value = "逻辑删除")
    @TableLogic
    private Integer deleted;


}
